import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('rocket')
export class Rocket {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({length: 100, comment: '用户id', default: null})
  userId: string;

  @Column({length: 100, comment: '发布的某条数据的id', default: null})
  publish_id: string

  @Column({type: 'datetime', comment:'创建时间', default: null})
  createAt: Date;
}
